package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.AlertRuleDto;
import com.zzyl.entity.AlertRule;
import com.zzyl.vo.AlertRuleVo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AlertRuleMapper {
    void create(AlertRule alertRule);

    Page<AlertRuleVo> getPage(String alertRuleName, String functionName, String productKey);

    AlertRuleVo read(Integer id);

    void update(AlertRule alertRule, Integer id);

    void delete(Integer id);

    void updateStatus(Integer id, Integer status);
}
